removespriteaction

Removes a sprite action from the Compose user interface. removespriteaction is only available in the Compose GUI.

Syntax

removespriteaction(name)

Inputs

name
The name of the sprite action.
Type: string

Examples

Remove a sprite action:
addribbonpagegroup('Test','Indentation');
addspriteactiongroup('Test', 'Indentation', 'TestSG', 'UnIndent',0,80);
movesprite('TestSG', 0, -5);
addspriteaction('TestSG', 'TestActionLabel','TestAction', 'HandleUnIndent', 'UnIndent-80.png','','',true);
			
addspriteactiongroup('Test', 'Indentation', 'TestSG2', 'Indent',0,80);
movesprite('TestSG2', 0, -5);
addspriteaction('TestSG2', 'TestActionLabel2','TestAction2', 'HandleIndent', 'Indent-80.png','','',true);
			
function HandleUnIndent()
	disp('UnIndent is handled');
end

function HandleIndent()
	disp('Indent is handled');
end
			
removespriteaction('TestActionLabel2'); % remove action by specifying action label